#ifndef WGTPARA_H
#define WGTPARA_H

#include <QCheckBox>
#include <QComboBox>
#include <QDoubleSpinBox>
#include <QLabel>
#include <QLineEdit>
#include <QWidget>

class WgtPara : public QWidget
{
    Q_OBJECT
public:
    explicit WgtPara(int Type,QString text1,QString text2,QWidget *parent = nullptr);

    QLabel *m_LabelText;
    QCheckBox *m_CkeckBox;

    QDoubleSpinBox *m_doubleSpinBox;

    QComboBox *m_ComboBox;

    QLineEdit *m_LineEdit;

    int m_Type;//1:doubleSpinBox  2:comboBox
    QString m_EngText;

    bool continueDSBox = false;
    bool continueCmBox = false;

signals:
    void sig_ParaData(QString text,QString data);

public slots:
    void slot_checkClick(bool ischeck);
    void slot_ComBoxText(QString text);
    void slot_doubleSpilBox(QString text);

    void slot_LineEdit();

    void slot_setPart(QString data);

};

#endif // WGTPARA_H
